<div class="list-item" th:each="list:${data}">
    <div class="list-item-content" th:if='${list.getType()} eq 10'>
        <!--咨询-->
        <div class="list-item-content-left" th:if="${list.getPhoto_path() != '' && list.getPhoto_path() != null}">
            <a target="_blank" th:href="@{/articleDetail(articleId=${list.getId()})}">
                <img alt="有贝口腔网" th:src="@{${list.getPhoto_path()}}">
            </a>
        </div>
        <div class="list-item-content-right">
            <div class="list-item-title">
                <a target="_blank" th:href="@{/articleDetail(articleId=${list.getId()})}" th:text="${list.getQuestion()}"></a>
            </div>
            <div class="list-item-content-text">
                <a target="_blank" th:href="@{/articleDetail(articleId=${list.getId()})}" th:text="${list.getIntroduce()}"></a>
            </div>
            <div class="list-item-jilu">
                <div class="list-item-infoma-left">
                    <a class="list-item-type" target="_blank" th:href="@{/type(typeId=${list.getType_id()})}" th:text="${list.name}"></a>
                    <span class="list-item-time" th:text="${list.time}"></span>
                    <a target="_blank" th:href="@{/articleDetail(articleId=${list.getId()})}">
                        <img alt="有贝口腔网" src="./yb_system_picture/icon_Browse.png">
                        <span class="liulan-text" th:text="${list.getRead_num()+' 阅读'}"></span>
                    </a>
                    <a class="item-pinglun-img" target="_blank"
                       th:href="@{/articleDetail(articleId=${list.getId()})}">
                        <img alt="有贝口腔网" src="./yb_system_picture/icon_News.png">
                        <span class="liulan-text"  th:text="${list.getCollect_num()+' 评论'}"></span>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div class="list-item-title" th:if="${list.getType()} eq 20 and ${list.getUid()} ne null">
        <!-- 是问题 -->
        <a target="_blank" th:href="@{/askAnswerDetail(answerId=${list.getId()})}" th:text="${list.getQuestion()}"></a>
    </div>
    <div class="list-item-content-index" th:if="${list.getType()} eq 20">
        <div class="text-ansower-user">
            <a class="list-item-infoma-user" target="_blank" th:href="@{/personalHomepage(userId=${list.getUid()})}">
                <img th:src="${list.getPhoto2()}" th:if="${list.getPhoto2() != null}">
                <span class="user-name" th:text="${list.getUname()}"></span>
            </a>
            <p class="text-ansower-p">
                <span class="text-ansower-huida">[回答内容]</span>
            </p>
        </div>
        <p class="text-ansower-content">
            <a target="_blank" th:href="@{/askAnswerDetail(id=${list.getId()})}" th:text="${list.getIntroduce()}"> </a>
        </p>
    </div>
    <div class="list-item-jilu" th:if="${list.getType()} eq 20">
        <div class="list-item-jilu-left">
            <a class="list-item-type" target="_blank" th:href="@{/type(typeId=${list.getType_id()})}" th:text="${list.getName()}"></a>
            <a class="list-item-infoma-user" target="_blank"
               th:href="@{/personalHomepage(userId=${list.getUser_id()})}">
                <img alt="有贝口腔网"
                     th:src="${list.getPhoto_path()}">
                <span th:text="${list.getNickname()}"></span>
            </a>
            <span class="list-item-time" th:text="${list.time}"></span>
            <span class="dotted"></span>
            <a class="list-item-huida" target="_blank"
               th:href="@{/askAnswerDetail(answerId=${list.getId()})}" th:text="${list.getAnswer_num()+' 回答'}"></a>
            <span class="dotted"></span>
            <a class="list-item-collation" target="_blank"
               th:href="@{/askAnswerDetail(answerId=${list.getId()})}" th:text="${list.getCollect_num()+' 收藏'}"></a>
            <a class="item-pinglun-img" target="_blank"
               th:href="@{/askAnswerDetail(answerId=${list.getId()})}">
                <img alt="有贝口腔网" src="./yb_system_picture/icon_Browse.png">
                <span class="liulan-text" th:text="${list.getRead_num()+' 阅读'}"></span>
            </a>
        </div>
        <div class="list-item-infoma-right">
            <a class="link-tomore" target="_blank"
               th:href="@{/askAnswerDetail(id=${list.id})}">邀请你回答</a>
        </div>
    </div>
</div>